import request from '@/utils/request'

export function tree(data) {
  return request({
    url: '/admin/companyPermission/tree',
    method: 'post',
    data
  })
}

export function create(data) {
  return request({
    url: '/admin/companyPermission/create',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/admin/companyPermission/update',
    method: 'post',
    data
  })
}

export function permission(data) {
  return request({
    url: '/admin/companyPermission',
    method: 'post',
    data
  })
}

export function drop(data) {
  return request({
    url: '/admin/companyPermission/drop',
    method: 'post',
    data
  })
}

export function deleted(data) {
  return request({
    url: '/admin/companyPermission/delete',
    method: 'post',
    data
  })
}
